//
//  EMTelObject.m
//  EasyMoney
//
//  Created by 邓乐 on 2020/1/12.
//  Copyright © 2020 zh. All rights reserved.
//

#import "EMTelObject.h"

@interface EMTelObject ()

@property (nonatomic, copy) NSString *phoneNumber;

@end

@implementation EMTelObject

- (BOOL)handleWillOpenUrlWithParams:(NSDictionary *)params
{
    _phoneNumber = [params objectForKey:@"num"];
    return YES;
}

- (void)universal_handleUrlScheme
{
    NSMutableString *str = [[NSMutableString alloc] initWithFormat:@"tel:%@",_phoneNumber];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
}

@end
